package com.biaobiaoqi.scoreanalysis.util;

import java.util.HashMap;
import java.util.Map;

public enum Semester {
	
 		FALL_SEMESTER {
			@Override
			public String getName() {
				return "上半学期";
			}
		},
		SPRING_SEMESTER {
			@Override
			public String getName() {
				return "下半学期";
			}
		};
		public abstract String getName();
		
	    
	    public  static Map<String, String> getMap() {  
	        Map<String, String> maps = new HashMap<String, String>();  
	        Semester[] type = Semester.class.getEnumConstants();  
	        for (Semester s : type) {  
	            maps.put(s.toString(), s.getName());  
	        }  
	        return maps;  
	    }  

}
